package com.reeygu.entity;

/**
 * @describe: 设备对象
 * @author: ReeyGu
 * @data: 2024/3/29 17:43
*/
public class Device {

    // 设备名称
    private String name;

    public Device(String name) {
        this.name = name;
    }

    public void turnOn() {
        System.out.println(name + " 设备打开");
    }

    public void turnOff() {
        System.out.println(name + " 设备关闭");
    }
}
